﻿namespace MvvmOrm.Models
{
    class ForeignKey
    {
        public ForeignKey(DatabaseItem.Row constrained_table, Column.Row constrained_column, 
            DatabaseItem.Row referenced_table, Column.Row referenced_column)
        {
            ConstrainedTable = constrained_table;
            ConstrainedColumn = constrained_column;
            ReferencedTable = referenced_table;
            ReferencedColumn = referenced_column;
        }

        public DatabaseItem.Row ConstrainedTable { get; private set; }
        public Column.Row ConstrainedColumn { get; private set; }
        public DatabaseItem.Row ReferencedTable { get; private set; }
        public Column.Row ReferencedColumn { get; private set; }
    }
}
